package com.bed.lovewithpatientbed.common.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author xuxiaoding
 * @version 1.0.0
 * @ClassName UserDetailBean.java
 * @Description 为了适配 LayUI 数据显示格式进行封装，用于 用户管理
 */
public class UserDetailBean {

    /**
     * 用户Id
     */
    private Integer userId;

    /**
     * 用户手机
     */
    private String userPhone;

    /**
     * 微信昵称
     */
    private String userNickname;

    /**
     * 性别
     */
    private String userSex;

    /**
     * 用户类型
     */
    private String userTypeName;

    /**
     * 注册时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date userRegisterDate;

    /**
     * 订单总数
     */
    private Long orderTotalCount;

    /**
     * 累计消费
     */
    private BigDecimal payTotal;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserNickname() {
        return userNickname;
    }

    public void setUserNickname(String userNickname) {
        this.userNickname = userNickname;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public String getUserTypeName() {
        return userTypeName;
    }

    public void setUserTypeName(String userTypeName) {
        this.userTypeName = userTypeName;
    }

    public Date getUserRegisterDate() {
        return userRegisterDate;
    }

    public void setUserRegisterDate(Date userRegisterDate) {
        this.userRegisterDate = userRegisterDate;
    }

    public Long getOrderTotalCount() {
        return orderTotalCount;
    }

    public void setOrderTotalCount(Long orderTotalCount) {
        this.orderTotalCount = orderTotalCount;
    }

    public BigDecimal getPayTotal() {
        return payTotal;
    }

    public void setPayTotal(BigDecimal payTotal) {
        this.payTotal = payTotal;
    }

    @Override
    public String toString() {
        return "UserDetailBean{" +
                "userId=" + userId +
                ", userPhone='" + userPhone + '\'' +
                ", userNickname='" + userNickname + '\'' +
                ", userSex='" + userSex + '\'' +
                ", userTypeName='" + userTypeName + '\'' +
                ", userRegisterDate=" + userRegisterDate +
                ", orderTotalCount=" + orderTotalCount +
                ", payTotal=" + payTotal +
                '}';
    }
}
